﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProductSearch.aspx.cs" Inherits="RGPWEB.admin.Hjbom.ProductSearch" %>

<%@ Register assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
       <title></title>
    <link href="../../inc/Style/index.css" rel="stylesheet" type="text/css" />
    <link href="../../inc/Style/childindex.css" rel="stylesheet" type="text/css" />
    <link href="../../inc/Style/GridView.css" rel="stylesheet" type="text/css" />
      
    <style type="text/css">
        #apDiv1 {
	position:absolute;
	width:189px;
	height:574px;
	z-index:1;
	left: 199px;
	top: 64px;
}
  
        .style1
        {
            height: 589px;
        }
  
        .style2
        {
            width: 100%;
        }
        .style3
        {
            width: 195px;
        }
        .style4
        {
            width: 354px;
        }
  
        .style5
        {
            width: 193px;
        }
  
    </style>
</head>
 <body>  
  <form id="form1" runat="server">
   
 <div>
    <asp:Panel ID="TitlePanel" runat="server" CssClass="titlePadding" Height="21px" 
        Width="800px">
        查询物料信息
    </asp:Panel> 
 </div>

 <div>
 
     <table class="style2">
         <tr>
             <td class="style3">
                 <asp:RadioButtonList ID="RbtnSelect" runat="server" Font-Size="Small" 
                    RepeatDirection="Horizontal" Height="16px" Width="190px" 
                    appenddatabounditems="True">
                <asp:ListItem Value="pn" Selected="True">料号</asp:ListItem>
                <asp:ListItem Value="pm">名称</asp:ListItem>
                <asp:ListItem Value="pt">规格</asp:ListItem>
                     <asp:ListItem Enabled="False" Value="4">节点</asp:ListItem>
              </asp:RadioButtonList>
                </td>
             <td class="style4">
                  <asp:TextBox ID="TextBox1" runat="server" Height="21px" Width="341px"></asp:TextBox>
                </td>
             <td>
                <asp:Button ID="BtnSearch" runat="server" Font-Size="Small" Text="查询" 
                    Height="24px" style="margin-left: 0px" Width="99px" 
                      onclick="BtnSearch_Click"  />            
                </td>
             <td>
                 &nbsp;</td>
             <td>
                 &nbsp;</td>
             <td>
                 &nbsp;</td>
             <td>
                 &nbsp;</td>
             <td>
                 &nbsp;</td>
         </tr>
     </table>
 
 </div>
 
 <div>
 
     <table class="style2">
         <tr>
             <td class="style5">
                
 <div style="vertical-align:top; position: static;">
    
                   
         <asp:TreeView style="vertical-align:top;" ID="TreeView1" runat="server" ExpandDepth="0" ImageSet="Msdn" 
                        NodeIndent="10" Height="782px" 
    onselectednodechanged="TreeView1_SelectedNodeChanged" Width="186px">
                            <ParentNodeStyle Font-Bold="False" />
                            <HoverNodeStyle BackColor="#CCCCCC" BorderColor="#888888" BorderStyle="Solid" 
                            Font-Underline="True" />
                            <SelectedNodeStyle BackColor="White" BorderColor="#888888" BorderStyle="Solid" 
                            BorderWidth="1px" Font-Underline="False" HorizontalPadding="3px" 
                            VerticalPadding="1px" />
                            <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" 
                            HorizontalPadding="5px" NodeSpacing="1px" VerticalPadding="2px" />
                        </asp:TreeView>               
                        
           
                
                
                    <asp:SqlDataSource ID="SDS_Search" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:AIS20101102153154ConnectionString %>" 
                        SelectCommand="SELECT FNumber, FName, FItemID, FItemClassID, FParentID, FLevel, FDeleted FROM t_Item WHERE ((FItemClassID = 4)And(FDeleted &lt;&gt;1)) ORDER BY FNumber">
                        </asp:SqlDataSource>
              
                                    
        <asp:DetailsView ID="DV_MM" runat="server" Height="50px" Width="125px">
        </asp:DetailsView>
        <asp:SqlDataSource ID="SDS_MM" runat="server"></asp:SqlDataSource>
    </div>            
                
                
                    </td>
             <td>
                 &nbsp;</td>
             <td>
                 &nbsp;</td>
             <td>
                 &nbsp;</td>
         </tr>
     </table>
 
 </div>
    
   
                  <div id="apDiv1" style="margin: 0px; height: 670px; width: 854px; vertical-align: top;" >
                      <asp:ScriptManager ID="ScriptManager1" runat="server">                      </asp:ScriptManager>
                      <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                          <ContentTemplate>
                              <asp:GridView ID="GV_Search" runat="server" Width="100%" BackColor="White" 
                                  BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                                  ForeColor="Black" GridLines="Vertical" EnableTheming="True" Height="147px" 
                                  onrowdatabound="GV_Search_RowDataBound" 
                                  onselectedindexchanged="GV_Search_SelectedIndexChanged1" DataKeyNames="料号">
                                  <RowStyle BackColor="#F7F7DE" />
                                  <Columns>
                                      <asp:BoundField HeaderText="编号">
                                          <ItemStyle HorizontalAlign="Left" Width="30px" />                                      </asp:BoundField>
                                      <asp:CommandField ShowSelectButton="True">
                                          <ItemStyle Width="30px" />                                      </asp:CommandField>
                                      <asp:HyperLinkField DataNavigateUrlFields="料号" 
                                          DataNavigateUrlFormatString="mm_detailsview.aspx?料号={0}" DataTextField="料号" 
                                          DataTextFormatString="详细">
                                          <ItemStyle Width="30px" />                                      </asp:HyperLinkField>
                                  </Columns>
                                  <FooterStyle BackColor="#CCCC99" />
                                  <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                                  <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                                  <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                                  <AlternatingRowStyle BackColor="White" />
                              </asp:GridView>
                              <asp:SqlDataSource ID="SDS_GridView" runat="server"></asp:SqlDataSource>
                          </ContentTemplate>
                          
                          <triggers>
                              <asp:AsyncPostBackTrigger ControlID="GV_Search" EventName="DataBound" />
                              <asp:AsyncPostBackTrigger ControlID="BtnSearch" EventName="Click" />
                              <asp:AsyncPostBackTrigger ControlID="TreeView1" EventName="Unload" />
                              <asp:AsyncPostBackTrigger ControlID="TextBox1" EventName="Unload" />
                          </triggers>
                      </asp:UpdatePanel>
              </div>
 
    </form>
    </body>
</html>
